﻿using Api.share.Enum;

namespace Api.DataAccess.User;


/// <summary>
/// sys_user
/// </summary>
public class UserEntity : EntityObjectBase
{
    /// <summary>
    /// 登录账号
    /// </summary>
    public required string Account { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public required string Name { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    public required string PassWord { get; set; }



    /// <summary>
    /// 状态
    /// </summary>
    public UserStatus Status { get; set; } = UserStatus.Normal;

    /// <summary>
    /// 头像
    /// </summary>
    public required string Avatar { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    public required string Tel { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    public required string Email { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public required string Remark { get; set; }

    /// <summary>
    /// 是否是超级管理员
    /// </summary>
    public required bool IsSuperAdmin { get; set; }
}
